$(document).ready(function(){
	i = 0;
	seconds = 0.5; //0.5 seconds
	setInterval("refresher(i++)",seconds*1000);
});

refresher = function(i) {
	if (i<1) {
		var a = $('link[rel="stylesheet"]');
		var b = a.attr("href");
		a.attr("href", b+"?forceReload="+i);
	} else {
		j = String(i-1);
		var a = $('link[rel="stylesheet"]');
		var b = a.attr("href");
		var c = b.substring(0, b.length-j.length);
		a.attr("href", c+i);
		console.log();
	}
}